package com.imdroid.udp.push.objects;

import com.imdroid.modal.Device;
import com.imdroid.udp.FileTypes;

public class UTeamJoin extends Pushable {
	
	/**
	 * The sender
	 */
	private Device member;
	
	/**
	 * The team id
	 */
	private int teamId;
	
	/**
	 * The status
	 */
	private int status;

	private static final int header = FileTypes.TEAM_JOIN;
	
	public UTeamJoin(Device member, int teamId, int status){
		this.member = member;
		this.teamId = teamId;
		this.status = status;
	}
	
	@Override
	protected byte getHeader() {
		return header;
	}

	@Override
	protected String getBody() {
		return member.getUser_id() + ":" + member.getUser_name() + ":" + teamId + ":" + status;
	}

}
